PHY MAKE RIGID BODY STATIC SPHERES

Takes an object and makes a multi shape rigid body for it from all of its limbs using spheres.

  Syntax
phy make rigid body static spheres ID 
phy make rigid body static spheres ID, material
  Parameters

ID
identification number of the 3D object that you want to be represented by a collection of static spheres in the simulation

material
this parameter is optional, a material can be specified if required upon creation, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its restitution

  Returns

This command does not return a value.

  Description

This is particularly useful in cases where more complex objects are required than the standard box, sphere and capsule. As an example of this command in action, take a scenario where a table model has been loaded. If phy make rigid body static sphere is used then the sphere will be a fit around the whole table so other rigid bodies will not be able to go under the empty space below the table top and its legs. If we use phy make rigid body static spheres each part of the table can have a static rigid body sphere to represent it in the simulation. Therefore we end up with five rigid body spheres, one for the table top and four for the legs. This is much more preferable and means other rigid bodies can move in the visible empty space below the table. Note that this command operates on limbs / meshes in an object so this determines how the object is represented. Having only one limb / mesh in the object will result in only one rigid body sphere being created so it is important to ensure the model you are using is set up correctly so in the case of a table make sure each component is a separate limb / mesh within the model hierarchy. As the object is represented by a collection of static rigid body spheres it will remain immoveable and will not be affected by forces such as gravity etc. This makes static objects ideal candidates for level scenery.